from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
from enum import Enum as PyEnum


class Base(DeclarativeBase):
    # 定义为抽象类，只能被继承，不能实例化
    __abstract__ = True
    # 默认字段
    id: Mapped[int] = mapped_column(primary_key=True)


class DeleteStatus(PyEnum):
    DELETED = 1
    EXISTING = 0


class ReportStatus(PyEnum):
    UNEXECUTED = 0
    RUNNING = 1
    COMPLETED = 2
